Repository navigation
Conversation
Migrate off the options removed in 3.0 and keep creating issues from error logs, scrubbing local variables, and the existing message grouping. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Contributor
📲 Install BuildsiOS
Android
|
Contributor
Size Analysis1 component analyzed, 1 component processing iOS Builds
Android Builds
|
Earlier releases import an API removed in sentry-sdk 3.0 and crash on startup. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Comment on lines
46
to
58
| sentry_sdk.init( | ||
| dsn=config.dsn, | ||
| integrations=integrations, | ||
| data_collection={}, | ||
| # SDK 3.x no longer scrubs sensitive local variables by default. | ||
| data_collection={"stack_frame_variables": {"mode": "denylist"}}, | ||
| # SDK 3.x attaches stack traces to messages by default, which would regroup issues. | ||
| attach_stacktrace=False, | ||
| # Release is the git sha | ||
| release=config.release, | ||
| # Convention is to set the Sentry environment to the region (us, de, etc). | ||
| enable_logs=True, | ||
| environment=config.region, | ||
| traces_sample_rate=1.0, # Low volume service, capture all traces for now | ||
| trace_lifecycle="stream", | ||
| ) |
There was a problem hiding this comment.
Removing enable_logs=True drops Sentry log shipping used by workers
initialize_sentry_sdk no longer passes enable_logs=True, so worker/process log records may stop arriving as Sentry log envelopes. Restore enable_logs (or the SDK 3.x equivalent) if log shipping is still required.
Evidence
- Diff removes
enable_logs=Truefromsentry_sdk.init(...)with no replacement option or comment that it is now default. tests/integration/size/test_apple_app_sizes.py::test_worker_logs_are_sent_to_sentry_under_parent_tracerequires worker log envelopes (type == "log") forsize.apple.binary_analysis_completed.- Binary workers call
initialize_sentry_sdk(context.sentry_config)in_binary_worker_init, so production log shipping depends on this init path. event_level=ERRORon LoggingIntegration emits Issue events, not log envelopes, and does not substitute forenable_logs.
Identified by Warden · code-review · VPW-HLJ
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.